package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TInvoiceInfoMapper;
import com.ruoyi.platform.domain.TInvoiceInfo;
import com.ruoyi.platform.service.ITInvoiceInfoService;

/**
 * 用户发票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TInvoiceInfoServiceImpl implements ITInvoiceInfoService 
{
    @Autowired
    private TInvoiceInfoMapper tInvoiceInfoMapper;

    /**
     * 查询用户发票信息
     * 
     * @param invoiceId 用户发票信息主键
     * @return 用户发票信息
     */
    @Override
    public TInvoiceInfo selectTInvoiceInfoByInvoiceId(Long invoiceId)
    {
        return tInvoiceInfoMapper.selectTInvoiceInfoByInvoiceId(invoiceId);
    }

    /**
     * 查询用户发票信息列表
     * 
     * @param tInvoiceInfo 用户发票信息
     * @return 用户发票信息
     */
    @Override
    public List<TInvoiceInfo> selectTInvoiceInfoList(TInvoiceInfo tInvoiceInfo)
    {
        return tInvoiceInfoMapper.selectTInvoiceInfoList(tInvoiceInfo);
    }

    /**
     * 新增用户发票信息
     * 
     * @param tInvoiceInfo 用户发票信息
     * @return 结果
     */
    @Override
    public int insertTInvoiceInfo(TInvoiceInfo tInvoiceInfo)
    {
        return tInvoiceInfoMapper.insertTInvoiceInfo(tInvoiceInfo);
    }

    /**
     * 修改用户发票信息
     * 
     * @param tInvoiceInfo 用户发票信息
     * @return 结果
     */
    @Override
    public int updateTInvoiceInfo(TInvoiceInfo tInvoiceInfo)
    {
        return tInvoiceInfoMapper.updateTInvoiceInfo(tInvoiceInfo);
    }

    /**
     * 批量删除用户发票信息
     * 
     * @param invoiceIds 需要删除的用户发票信息主键
     * @return 结果
     */
    @Override
    public int deleteTInvoiceInfoByInvoiceIds(Long[] invoiceIds)
    {
        return tInvoiceInfoMapper.deleteTInvoiceInfoByInvoiceIds(invoiceIds);
    }

    /**
     * 删除用户发票信息信息
     * 
     * @param invoiceId 用户发票信息主键
     * @return 结果
     */
    @Override
    public int deleteTInvoiceInfoByInvoiceId(Long invoiceId)
    {
        return tInvoiceInfoMapper.deleteTInvoiceInfoByInvoiceId(invoiceId);
    }
}
